//
//  KaratLivePlayerViewController.h
//  KaratLivePlayer
//
//  Created by apple on 16/4/22.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    ScreenTypeVertical          = 0,//竖屏
    ScreenTypeCross             = 1,//横屏
} ScreenType;

@protocol KaratLivePlayerDelegate <NSObject>

- (void)onBtnCloseDelegate;

@end

@interface KaratLivePlayerViewController : UIViewController

//@property (nonatomic, strong) NSURL *URL;

//- (instancetype)initWithURL:(NSURL *)URL;

@property (nonatomic,assign) id<KaratLivePlayerDelegate> delegate;

-(instancetype)initPlayerView:(NSString*)url withScreenType:(ScreenType)screenType;
- (void)startPlayer;

- (void)changeFrame:(CGRect)rect;

@end
